package ysq.xyg.model;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * 会员信息
 * */
@Getter
@Setter
@Table(name = "xyg_member")
public class Member implements Serializable {
    @Id
    private String id;

    //微信openid
    private String openid;

    //微信头像
    @Column(name = "head_image")
    private String headImage;

    //微信昵称
    @Column(name = "nick_name")
    private String nickName;
    //单位名称
    private String grade;

    //会员卡号
    @Column(name = "card_no")
    private String cardNo;

    //姓名
    private String name;

    //手机号
    private String phone;


    //性别
    private String sex;

    //创建时间
    @Column(name = "create_time")
    private Date createTime;

    //区域id
    @Column(name = "area_user_id")
    private String areaUserId;

    //一级介绍人id
    @Column(name = "one_user_id")
    private String oneUserId;

    //二级介绍人id
    @Column(name = "introduct_user_id")
    private String introductUserId;

    @Transient
    private int num;
    @Transient
    private String userId;
    @Transient
    private String startDate;
    @Transient
    private String endDate;
    @Transient
    private String memberIds;
    @Transient
    private String gradeName;


}